import 'package:flutter_app/base/i_presenter.dart';
import 'package:flutter_app/base/i_view.dart';

abstract class BasePresenter<V extends IView> with IPresenter {
  V _view;

  V get view => _view;

  BasePresenter(this._view);

  @override
  void detachView() {
    if (_view != null) {
      _view = null;
    }
  }
}
